package org.jinghouyu.json.serializer;

import java.util.List;

import org.jinghouyu.json.beans.JavaBeanASMBuilder;
import org.jinghouyu.json.beans.KeyValueDescriptor;
import org.jinghouyu.json.core.KeyValueSerializer;

public class JavaBeanSerializer extends KeyValueSerializer<Object> {

	@Override
	public List<KeyValue<String, Object>> listItem(
			Object bean) {
		KeyValueDescriptor<Object> des = JavaBeanASMBuilder.build(bean);
		return des.listItem(bean);
//		return new JavaBeanNormalDescriptor().listItem(bean);
	}

}
